@import './theme.css';
/* =========== 以下是对element修改 和 平台公用样式 ========== */
html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-font-color);
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    '微软雅黑', Arial, sans-serif;
}

/* ---------------标题header、panels------------- */
.item-header {
  font-size: 14px;
  color: #000;
  height: 30px;
  line-height: 30px;
  margin: 5px 0;
}

.item-header:before {
  content: ' ';
  display: inline;
  background: var(--base-color);
  padding-left: 3px;
  margin-right: 15px;
}

.panels {
  border: 1px solid #e2e7ed;
  padding-top: 24px;
  padding-bottom: 2px;
  margin-bottom: 16px;
  box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6), 0 2px 4px 0 rgba(232, 237, 250, 0.5);
}
/* ------------------segment------------------- */
.segment {
  background: #ffffff;
  border: 1px solid var(--base-border-color);
  margin-bottom: 16px;
}
.segment.noborder {
  border: none;
}
.segment.segment-panels {
  border: none;
  box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6), 0 2px 4px 0 rgba(232, 237, 250, 0.5);
}

.segment-green {
  background: #fbfff8;
  border: 1px solid #b3d99c;
  margin-bottom: 15px;
}

.segment:last-child,
.segment-green:last-child {
  margin-bottom: 0;
}

.segment .segment-line {
  width: 97%;
  height: 1px;
  margin-left: auto;
  margin-right: auto;
  background: #e2e7ed;
}

.segment .segment-fullline {
  width: 100%;
  height: 1px;
  margin-left: auto;
  margin-right: auto;
  background: #e2e7ed;
}

.segment .segment-header {
  height: 37px;
  line-height: 37px;
  text-indent: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--base-border-color);
  background: #f7f9fb;
}

.segment .segment-header-sub {
  font-size: 14px;
  color: #99a9bf;
  font-weight: normal;
  padding-left: 15px;
}

.segment .segment-area {
  padding: 15px;
}

.segment .el-row {
  height: 36px;
  line-height: 36px;
  padding: 0 28px;
  clear: both;
}

.segment .segment-label {
  display: inline-block;
  width: 120px;
  color: var(--base-label-color);
}
.el-form-item__label {
  color: var(--base-label-color);
}
.font-label {
  color: var(--base-label-color) !important;
}
.segment .segment-content {
  display: inline-block;
  color: #333333;
}
.segment .segment-foot {
  background: #fcfdff;
  height: 50px;
  line-height: 50px;
  padding-left: 15px;
  border-top: 1px solid var(--base-border-color);
}

.segment-brline {
  /* segment内 col右边框 */
  border-right: 1px solid var(--base-border-color);
}
/* segment-content超长  多行换行、缩进对齐指定父级class */
.segment-item-warp {
  position: relative;
  line-height: 36px;
  .segment-label {
    position: absolute;
    top: 0;
    left: 0;
  }
  .segment-content {
    display: block;
    padding-left: 120px;
  }
}
/* segment-conten图片凭证 指定父级class */
/* el-row 需要自动行高  class="h-auto" */
.segment-item-warp.imgwarp {
  .segment-content {
    min-height: 36px;
    .preview-grid {
      margin-top: 10px;
    }
  }
}
/* segment-conten备注文案 指定父级class*/
.segment-item-warp.memowarp {
  .segment-content {
    min-height: 24px;
    line-height: 22px;
    padding-top: 7px;
    padding-bottom: 6px;
  }
}

/* segment-content超长 单行省略号 指定父级class 自行绑定title */
.segment-item-ellipsis {
  position: relative;
  .segment-label {
    position: absolute;
    top: 0;
    left: 0;
  }
  .segment-content {
    display: block;
    min-height: 36px;
    padding-left: 120px;
    padding-right: 10px;
    /* margin-left: 5px; */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ------------------工具栏toolbar------------------- */
.toolbar-panel .toolbar-item {
  display: inline-block;
  padding-right: 10px;
  margin-bottom: 12px;
  vertical-align: middle;
}

.toolbar-panel .toolbar-item.toolbar-prefix-item {
  padding-right: 0;
}
.toolbar-panel .el-input__inner {
  height: 33px;
}

.toolbar-panel .toolbar-item .el-input {
  vertical-align: middle;
}

.toolbar-panel .toolbar-item .el-input {
  width: 220px;
  vertical-align: middle;
}

.toolbar-panel .toolbar-item .el-select .el-input {
  width: 120px;
}

.toolbar-panel .toolbar-item .item-label,
.toolbar-panel .toolbar-item .item-label,
.toolbar-panel .toolbar-item .el-select {
  vertical-align: middle;
  padding-right: 5px;
}

.rowone-expand {
  cursor: pointer;
}

.rowone-expand:hover {
  cursor: pointer;
  color: var(--base-color);
}

.toolmore-control {
  border-top: 1px solid var(--base-border-color);
  box-sizing: border-box;
  background-color: #fff;
  text-align: center;
  margin-top: 10px;
  color: #d3dce6;
  cursor: pointer;
  position: relative;
}

.toolmore-control-btn {
  border: 1px solid var(--base-border-color);
  border-top: none;
  width: 80px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  text-align: center;
  margin: 0 auto;
  margin-top: -1px;
  background: #fff;
  color: #9ea7b4;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.toolmore-control-btn:hover {
  color: var(--base-color);
}

.toolbar-totaltip {
  height: 28px;
  line-height: 30px;
  padding-left: 10px;
  margin-top: 8px;
  font-size: 13px;
  background: #fffaf3;
  border: 1px solid var(--base-orange-color);
}

/* ------------------form表单------------------- */
.el-form-item--mini.el-form-item .el-form-item,
.el-form-item--small.el-form-item .el-form-item {
  margin-bottom: 0;
}
.el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
  margin-bottom: 22px;
}
.el-form-item--small .el-form-item__error {
  padding-top: 4px;
}
.el-form-item.is-success .el-input__inner,
.el-form-item.is-success .el-input__inner:focus,
.el-form-item.is-success .el-textarea__inner,
.el-form-item.is-success .el-textarea__inner:focus {
  border-color: #dcdfe6;
}

/* ------------------面包屑导航------------------- */
.el-breadcrumb {
  font-size: 14px;
  padding-top: 15px;
  margin-bottom: 16px;
}

.el-breadcrumb.border {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--base-border-color);
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: normal;
  color: #8492a6;
}

.el-breadcrumb__item:last-child .el-breadcrumb__inner,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
  color: #333333;
}

.el-breadcrumb .el-breadcrumb__item:first-child .el-breadcrumb__inner::before {
  content: '';
}

.el-breadcrumb .el-breadcrumb__separator {
  font-weight: normal;
}

/* ------------------步骤条------------------- */
.el-step__head.is-finish {
  color: var(--base-green-color);
  border-color: var(--base-green-color);
}
.el-step__title.is-finish {
  color: var(--base-green-color);
}
.el-step__description.is-finish {
  color: var(--base-green-color);
}

/* ------------------获取验证码按钮------------------- */
.getcode {
  font-size: 13px !important;
  line-height: 1.5;
  color: var(--base-color) !important;
}

.getcode:hover {
  color: var(--base-color) !important;
}

.el-button.is-disabled.getcode,
.el-button.is-disabled.getcode:focus,
.el-button.is-disabled.getcode:hover {
  color: #bfcbd9 !important;
  background-color: initial;
  border: none;
}

.vcode-tips {
  text-align: right;
  color: var(--base-color);
  height: 30px;
  line-height: 40px;
  font-size: 12px;
  padding-right: 3px;
  margin-top: -30px;
}

/* ------------------图片预览排列 ------------------- */
/* 父容器div.preview-grid包裹div.preview-grid-img 使用background*/
.preview-grid {
  width: 100px;
  height: 100px;
  display: inline-block;
  margin-right: 10px;
  border: 1px solid #c0ccda;
}

.preview-grid-img {
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  background-position: center center;
}
.el-dialog__body {
  padding: 20px;
}

/* ------------------图片dialog弹窗 ------------------- */
/* 自适应图片宽高 不需要给dialog宽度 给dialog指定样式为preview-img即可 不可以使用custom-class*/
.el-dialog__wrapper.preview-img {
  text-align: center;
}

.preview-img .el-dialog,
.preview-img.el-dialog {
  display: inline-block;
  width: auto !important;
  max-width: 90% !important;
}

/* ------------------table样式 ------------------- */
.el-table__header tr th {
  padding: 8px 0;
  background: #f7f9fb;
  border-right: 1px solid var(--base-border-color);
}

.el-table--medium td,
.el-table--medium th {
  padding: 8px 0;
}

.el-table__expanded-cell {
  font-size: 0;
}

.el-table__expanded-cell .el-form-item__label {
  width: 100px;
  color: #99a9bf;
}

.el-table__expanded-cell .el-form-item__label {
  font-size: 12px;
}

.el-table__expanded-cell .el-form-item__content {
  font-size: 12px;
}

.el-table__expanded-cell .el-form-item {
  margin-right: 0;
  margin-bottom: 0;
  width: 33.33%;
}

.el-table .cell,
.el-table th > div {
  padding-left: 10px;
  padding-right: 10px;
}
.el-table__body tr.current-row > td {
  background-color: #b6d6f3;
}

.el-tooltip__popper.is-dark {
  width: 300px;
}

/*原组件loading白色遮罩  改为黑色透明*/
.el-loading-mask {
  background-color: rgba(0, 0, 0, 0.1);
}

/*无下边距的form-item 默认是24px 22px*/
.el-form-item.nomargin {
  margin-bottom: 0 !important;
}

/* 所有dialog最低宽度 */
.el-dialog {
  min-width: 200px;
}

/* 文本提示类dialog 固定宽度 */
.tip-dialog {
  min-width: 400px;
  width: 420px;
}

/* 没有右上角X的dialog */
.noclose-dialog .el-message-box__close {
  display: none !important;
}

/* 日期范围框宽度调整 */
.el-date-editor--daterange.el-input,
.el-date-editor--daterange.el-input__inner,
.el-date-editor--timerange.el-input,
.el-date-editor--timerange.el-input__inner {
  width: 250px;
  .el-date-editor .el-range-input {
    width: 35%;
  }
}

.el-tag.el-tag--mini {
  border-radius: 2px;
}
.el-date-editor--datetimerange.el-input,
.el-date-editor--datetimerange.el-input__inner {
  width: 350px;
  .el-date-editor .el-range-input {
    width: 39%;
  }
}

/* popover-item */
.multiple-popover {
  .multiple-popover-item {
    margin-bottom: 10px;
  }
  .multiple-popover-item:last-child {
    margin-bottom: 0;
  }
}

/* 页面加载loading */
.spinner {
  position: fixed;
  left: 50%;
  top: 38%;
  width: 50px;
  height: 40px;
  margin-left: -25px;
  margin-top: -20px;
  text-align: center;
  font-size: 0;
  z-index: 9999;
}

.spinner > div {
  background-color: var(--base-color);
  height: 100%;
  width: 6px;
  margin-left: 3px;
  padding: 0;
  display: inline-block;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  animation-delay: -1.1s;
}

.spinner .rect3 {
  animation-delay: -1s;
}

.spinner .rect4 {
  animation-delay: -0.9s;
}

.spinner .rect5 {
  animation-delay: -0.8s;
}

@keyframes sk-stretchdelay {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
  }
}

/* 级联省市区选择 */
.region-box {
  display: inline-block;
}

.region-box .el-cascader {
  width: 100%;
}

/* 成功步骤排版 */
.successContent {
  width: 300px;
  margin: 50px auto 10px;
  text-align: center;
}

.successContent .success-img {
  display: block;
  margin: 0 auto 20px;
}
.successContent .success-title {
  display: block;
  font-size: 20px;
  margin: 0 auto 5px;
}
.successContent .success-text {
  font-size: 14px;
  line-height: 24px;
}

.successContent .el-button.el-button--text {
  width: 100%;
  font-size: 14px;
}

/* 模拟密码框 */
.mock-pwd-panel {
  position: relative;
  .mock-pwd-content {
    /* width: 320px; */
    height: 37px;
    line-height: 37px;
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
    padding-left: 31px;
    position: relative;
    top: 1px;
    .mock-dot {
      vertical-align: middle;
      width: 4px;
      height: 4px;
      background: #4a4b4c;
      border-radius: 50%;
      display: inline-block;
    }
    .mock-dot + .mock-dot {
      margin-left: 3px;
    }
    .mock-placeholder {
      color: #c0c4cc;
    }
    .mock-placeholder.ie-placeholder {
      color: #606266;
    }
    .mock-mouse {
      display: inline-block;
      width: 1px;
      height: 19px;
      background: #4a4b4c;
      animation: blink 1s infinite steps(1, start);
      vertical-align: middle;
    }
    .mock-mouse.mock-mouse-position {
      position: absolute;
      left: 30px;
      top: 9px;
    }
  }

  .pwd-input {
    position: absolute;
    top: 0px;
  }
  .pwd-input .el-input__inner {
    color: transparent;
    background: transparent;
    text-indent: -999em;
  }
}
.pay-custom-dialog {
  width: 380px;
  .el-dialog__body {
    padding: 15px 30px;
  }
  .el-dialog__footer {
    padding-top: 0;
  }
}
@keyframes blink {
  0% {
    background-color: white;
  }
  50% {
    background-color: #4a4b4c;
  }
  100% {
    background-color: white;
  }
}
